package com.thm.tfast.modules.sys.model.dto.dict;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * @ClassName DictInsertDto
 * @Author THM
 * @Date 2022/10/31 13:50
 * @Version 1.0
 * @Description 数据字典新增dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class DictInsertDto {
    @ApiModelProperty(value = "字典类型")
    @NotEmpty(message = "字典类型不能为空")
    @Size(max = 36, message = "字典类型不能超过36位")
    private String type;

    @ApiModelProperty(value = "字典名称")
    @NotEmpty(message = "字典名称不能为空")
    @Size(max = 36, message = "字典名称不能超过36位")
    private String name;

    @ApiModelProperty(value = "备注")
    @Size(max = 64, message = "备注不能超过64位")
    private String remark;
}
